package com.ruoyi.outcome.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品管理跟踪对象 research_product_track
 * 
 * @author lh
 * @date 2025-01-13
 */
public class ResearchProductTrack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 跟踪记录唯一ID */
    private Long trackId;

    /** 关联的产品ID */
    @Excel(name = "关联的产品ID")
    private Long productId;

    /** 操作类型（新增、修改、删除） */
    @Excel(name = "操作类型", readConverterExp = "新=增、修改、删除")
    private String actionType;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String productDescription;

    /** 产品阶段（原型、最终产品） */
    @Excel(name = "产品阶段", readConverterExp = "原=型、最终产品")
    private Long productStage;

    /** 产品发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "产品发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseDate;

    /** 是否已申请专利 */
    @Excel(name = "是否已申请专利")
    private Long patentStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    private Date createdAt;

    private Long outcomeId;

    public Long getOutcomeId() {
        return outcomeId;
    }

    public void setOutcomeId(Long outcomeId) {
        this.outcomeId = outcomeId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /** 更新时间 */
    private Date updatedAt;
    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 删除标志（0: 未删除, 1: 已删除） */
    @Excel(name = "删除标志", readConverterExp = "0=:,未=删除,,1=:,已=删除")
    private Integer isDeleted;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trackedAt;

    public void setTrackId(Long trackId) 
    {
        this.trackId = trackId;
    }

    public Long getTrackId() 
    {
        return trackId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setActionType(String actionType) 
    {
        this.actionType = actionType;
    }

    public String getActionType() 
    {
        return actionType;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductDescription(String productDescription) 
    {
        this.productDescription = productDescription;
    }

    public String getProductDescription() 
    {
        return productDescription;
    }
    public void setProductStage(Long productStage) 
    {
        this.productStage = productStage;
    }

    public Long getProductStage() 
    {
        return productStage;
    }
    public void setReleaseDate(Date releaseDate) 
    {
        this.releaseDate = releaseDate;
    }

    public Date getReleaseDate() 
    {
        return releaseDate;
    }
    public void setPatentStatus(Long patentStatus) 
    {
        this.patentStatus = patentStatus;
    }

    public Long getPatentStatus() 
    {
        return patentStatus;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setTrackedAt(Date trackedAt) 
    {
        this.trackedAt = trackedAt;
    }

    public Date getTrackedAt() 
    {
        return trackedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trackId", getTrackId())
            .append("productId", getProductId())
            .append("actionType", getActionType())
            .append("productName", getProductName())
            .append("productDescription", getProductDescription())
            .append("productStage", getProductStage())
            .append("releaseDate", getReleaseDate())
            .append("patentStatus", getPatentStatus())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("deletedBy", getDeletedBy())
            .append("deletedAt", getDeletedAt())
            .append("isDeleted", getIsDeleted())
            .append("version", getVersion())
            .append("trackedAt", getTrackedAt())
            .toString();
    }
}
